/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package quanlisinhvien.dto;

/**
 *
 * @author Marshmallow
 */
public class LopDTO {
    
    private int maLop;
    private String tenLop;
    private KhoaDTO khoa;

    public int getMaLop() {
        return maLop;
    }

    public void setMaLop(int maLop) {
        this.maLop = maLop;
    }

    public String getTenLop() {
        return tenLop;
    }

    public void setTenLop(String tenLop) {
        this.tenLop = tenLop;
    }

    public KhoaDTO getKhoa() {
        return khoa;
    }

    public void setKhoa(KhoaDTO khoa) {
        this.khoa = khoa;
    }

    public LopDTO() {
        this.maLop = 0;
        this.tenLop = "";
        this.khoa = new KhoaDTO();
    }

    public LopDTO(int maLop, String tenLop, KhoaDTO khoa) {
        this.maLop = maLop;
        this.tenLop = tenLop;
        this.khoa = khoa;
    }
    
    public LopDTO(LopDTO _lop){
        this.maLop = _lop.getMaLop();
        this.tenLop = _lop.getTenLop();
        this.khoa = _lop.getKhoa();
    }
    
}
